<template>
  <MapHeader title="位置"/>
  <baidu-map class="map" :center="{lng: 118.454, lat: 32.955}" :zoom="19" @ready="ready">
  </baidu-map>
</template>
<script setup lang="ts">
import MapHeader from "@/components/PubHeaderComponent.vue"

const ready = ({BMap, map}:any) => {
  //  对地图进行自定义操作
  console.log(BMap, map)
};
</script>
<style scoped lang="less">
.map {
  width: 400px;
  height: 300px;
}
</style>